home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 342_01.zip / I8255F01.C < prev    next >
C/C++ Source or Header  |  1993-04-03  |  1KB  |  42 lines

  1. /*-
  2.  *  ----------------------------------------------------------------------
  3.  *  File        :   I8255F01.C
  4.  *  Creator     :   Blake Miller
  5.  *  Version     :   01.00.00            August 1990
  6.  *  Language    :   Microsoft Quick C   Version 2.0
  7.  *              :   Microsoft C         Version 5.0
  8.  *  Purpose     :   Intel 8255 Compatible Digital IO Functions
  9.  *              :   Data Area Initialization Function
  10.  *  ----------------------------------------------------------------------
  11.  */
  12.  
  13. #define  I8255F01_C_DEFINED  1
  14. #include "I8255FN.H"
  15. #undef   I8255F01_C_DEFINED
  16.  
  17. void I8255_init (I8255DAT *data, int address);
  18.  
  19. /*- I8255 : Initialize Data Space ------------**
  20.  *  Initialize the data to safe values.
  21.  *  Passed:
  22.  *      pointer :   I8255DAT
  23.  *      integer :   base address
  24.  *  Returns:
  25.  *      nothing
  26.  */
  27. void I8255_init (I8255DAT *data, int address)
  28.     {
  29.     data->stat = I8255_ST_OK;
  30.     data->base = address;
  31.     data->mode = 0;
  32.     data->adat = 0;
  33.     data->bdat = 0;
  34.     data->cdat = 0;
  35.     }
  36.  
  37. /*-
  38.  *  ----------------------------------------------------------------------
  39.  *  END I8255F01.C Source File
  40.  *  ----------------------------------------------------------------------
  41.  */
  42.